package com.clouds.wms.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class StringArrayRowMapper implements RowMapper<String[]> {

	private static StringArrayRowMapper stringArrayRowMapper = null;
	
	public static StringArrayRowMapper getStringArrayRowMapper() {
		if(stringArrayRowMapper == null) {
			stringArrayRowMapper = new StringArrayRowMapper();
		}
		return stringArrayRowMapper;
	}
	public String[] mapRow(ResultSet rs, int rowNum) throws SQLException {
		String[] strs = new String[2];
		strs[0] = rs.getString(1);
		strs[1] = rs.getString(2);
		return strs;
	}
	
}
